/**
 * Created by yuweimei on 2018/1/18.
 */
/*
$(".swiper-container").swiper({
    autoplay:3500
});

$(document).on('infinite', '.infinite-scroll', function () {


    var ele = document.getElementsByClassName('content')[0];

    var $scope = angular.element(ele).scope();

    if ($scope.isOnloading) {
        return;

    }
    $scope.isOnloading = true;

    var page = ++$scope.page;

    $scope.getHomeTask(page);
});*/
$(function () {

    $(".valibtn").click(function () {
        settime(this)
    });

    var countdown = 60;

    function settime(obj) {
        if (countdown == 0) {
            obj.removeAttribute("disabled");
            obj.innerHTML = "��ȡ��֤��";
            countdown = 60;
            return;
        } else {
            obj.setAttribute("disabled", true);
            obj.innerHTML = "" + countdown + "����ٻ�ȡ";
            countdown--;
        }
        setTimeout(function () {
            settime(obj)
        }, 1000)
    }
});
